using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Remoting;
using System.Runtime.Serialization;

namespace Midas.Core
{
	[Serializable()]
	public class MidasException : RemotingException, ISerializable
	{
		public MidasException(string message)
			: base(message)
		{
		}

		public MidasException(SerializationInfo info, StreamingContext context)
			: base(info, context)
		{
		}

		#region ISerializable Members

		void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
		{
			base.GetObjectData(info, context);
		}

		#endregion
	}
	[Serializable()]
	public class MidasAlreadyLoggedInException : MidasException, ISerializable
	{
		public MidasAlreadyLoggedInException(string message)
			: base(message)
		{
		}

		public MidasAlreadyLoggedInException(SerializationInfo info, StreamingContext context)
			: base(info, context)
		{
		}

		#region ISerializable Members

		void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
		{
			base.GetObjectData(info, context);
		}

		#endregion
	}
}
